<html>
<!--
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<title>NaCl Load Test</title>
</head>
<body>
<h2>NaCl Load Test</h2>
</body>
<script type="text/javascript" src="nacltest.js"> </script>
<script type="text/javascript" src="load_util.js"> </script>
<script type="text/javascript" src="simple_cc.js"> </script>
<script>

function create(manifest_url) {
  // Make sure NaCl mimetypes are being returned.
  if (navigator.mimeTypes['application/x-nacl'] === undefined ||
    navigator.mimeTypes['application/x-pnacl'] === undefined) {
    return;
  }
  var embed = document.createElement("embed");
  embed.src = manifest_url;
  embed.type = "application/x-nacl";
  if (getTestArguments()["pnacl"] !== undefined) {
    embed.type = "application/x-pnacl";
  }
  simple_test.addTestListeners(embed);
  document.body.appendChild(embed);
}

create("simple.nmf");
</script>
</html>
